{{ var data = it.data, isGroup = it.type === 2, isUser = it.type === 1; }} {{? isUser }}
<!--user-->
<div class="cardHeader">
    {{?data.status === 3}}
    <span class="imgLink">
        <img src="{{= data.avatar }}" class="circle avatar" />
    </span>
    {{??}}
    <a href="/user_{{= data.accountId }}" class="imgLink" target="_blank">
        <img src="{{=data.avatar}}" class="circle avatar {{= data.detail_closed == 'true' ? 'closeUser' : '' }}" />
    </a>
    {{?}}

    <div class="cardContent-wrapper">
        <div class="flexRow alignItemsCenter">
            {{?data.status === 3}}
            <span class="name overflow_ellipsis ThemeColor3 flex">
                {{! data.fullname }} {{? !data.isPortal}}
                <span class="icon-folder-public smallEarth"></span>
                {{?}}
            </span>
            {{??}}
            <a
                class="name overflow_ellipsis ThemeHoverColor3 flex {{=it.inviterAccount ? 'clearTop' : ''}}"
                target="_blank"
                href="/user_{{=data.accountId}}"
                title="{{!data.fullname}}"
            >
                {{! data.fullname }} {{=data.status === 2 ? _l('帐号已注销') : ''}}
            </a>
            {{?}}

            <div class="mLeft10">
                <span data-tip="{{= _l('刷新')}}">
                    <span class="startChat refreshCardBtn icon-task-later ThemeHoverColor3 Gray_9e"></span>
                </span>
            </div>

            {{?data.status==1 && md.global.Account && data.accountId != md.global.Account.accountId && data.accountId !=
            'user-workflow' && !_.get(window, 'shareState.shareId')}}
            <div class="mLeft10">
                <span data-tip="{{= _l('发消息')}}">
                    <span
                        class="startChat icon-chat-session ThemeColor3"
                        data-bssp="usersetting.businessCardChat"
                        data-isContact="{{= data.isContact  }}"
                    ></span>
                </span>
            </div>
            {{?}}
        </div>

        {{? data.isPortal}}
        <div class="cardContentDesc userCard">
            <span class="overflow_ellipsis contentItem">{{!data.mobilePhone}}</span>
        </div>
        {{?? isUser }}
        <div class="cardContentDesc userCard">
            {{?data.currentProjectName}} {{?(data.orgName || data.profession)}}
            <span class="overflow_ellipsis contentItem">
                {{?data.orgName}}
                <span class="orgName">{{!data.orgName}}</span>
                {{?}} {{?(data.orgName && data.profession)}}
                <span>|</span>
                {{?}} {{?data.profession}}
                <span title="{{!data.profession}}">{{!data.profession}}</span>
                {{?}}
            </span>
            {{?}} {{?data.currentJobNumber}}
            <span class="overflow_ellipsis contentItem" title="{{!data.currentJobNumber}}"
                >{{!data.currentJobNumber}}</span
            >
            {{?}} {{??}}
            <span class="contentTagItemCon">
                {{?data.companyName}}
                <span class="contentItemLeft" title="{{!data.companyName}}">{{!data.companyName}}</span>
                {{?}} {{?!data.currentProjectName}}
                <span class="contentTagItem">{{= _l('外协%08000')}}</span>
                {{?}}
            </span>
            {{?data.profession}}
            <span class="overflow_ellipsis contentItem" title="{{!data.profession}}">{{!data.profession}}</span>
            {{?}} {{?}} {{?data.email}}
            <span class="overflow_ellipsis contentItem" title="{{!data.email}}">{{!data.email}}</span>
            {{?}} {{?data.mobilePhone}}
            <span class="overflow_ellipsis contentItem" title="{{!data.mobilePhone}}">{{!data.mobilePhone}}</span>
            {{?}} {{? !data.nodata && !data.profession && !data.email && !data.mobilePhone }}
            <span class="overflow_ellipsis contentItem Gray_c">{{= _l('这个家伙什么也没有留下')}}~</span>
            {{?}}
        </div>

        {{??}}
        <div class="cardContentDesc">
            {{? it.secretType === 0 }}
            <span class="contentItem">{{= _l('开放沟通 扁平协作')}}</span>
            {{??}}
            <span class="contentItem">{{= _l('原负责人已经离职，由企业小秘书托管')}}</span>
            <span class="contentItem">{{= _l('你可以联系管理员进行移交')}}</span>
            {{?}}
        </div>
        {{?}}
    </div>
</div>

{{?? isGroup }}
<div class="cardHeader pBottom16">
    <span class="imgLink">
        <img src="{{=data.avatar}}" class="circle avatar" />
    </span>
    <div class="cardContent-wrapper">
        <span class="name overflow_ellipsis ThemeHoverColor3" title="{{!data.groupName}}"> {{!data.groupName }} </span>
        <div class="cardContentDesc">
            {{?data.project}}
            <span class="icon-company Font18 mRight5"></span> {{! data.project.companyName }} {{?}}
        </div>
    </div>
</div>

{{??}}
<div class="cardHeader pBottom16">
    <span class="imgLink">
        <img src={{=md.global.FileStoreConfig.pictureHost.replace(/\/$/, '') + '/UserAvatar/littleSecretary.png'}}
        class="circle avatar">
    </span>
    <span class="name overflow_ellipsis">{{= _l('企业小秘书')}}</span>
</div>
{{?}} {{? isUser }}
<div class="pTop20"></div>
{{?}} {{? it.opHtml && it.type !== it.TYPES.secret }}
<div class="userOperator">{{=it.opHtml}}</div>
{{?}}
